package com.dubboxml.gmail.serverImpl;

import com.dubbo.gmail.api.model.UserModel;
import com.dubbo.gmail.api.service.HelloService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Component;

@DubboService
@Component
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String word) {
        return "xml dubbo hello xxx";
    }

    @Override
    public String cacheUserModel(UserModel userModel) {
        return new UserModel(11, "xml dubbo").getName();
    }
}
